
<!-- 主题设置模板 -->
<script type="text/javascript">
  {{#
          let theme = layui.data("layui_theme") ||{};
          let themeColorIndex =  parseInt(theme.color ? theme.color.index : 0) || 0;
  }}

</script>

<div class="layui-card-body layadmin-setTheme">
  <ul class="layadmin-setTheme-color">
    {{# layui.each(top.config.theme.color, function(index, item){ }}
    <li lay-theme-event="setTheme" data-index="{{ index }}" data-alias="{{ item.alias }}"
        class="{{ index === themeColorIndex ? 'layui-this' : '' }}" title="{{ item.alias }}">
    <div class="layadmin-setTheme-header" style="background-color: {{ item.header }};"></div>
    <div class="layadmin-setTheme-side" style="background-color: {{ item.main }};">
      <div class="layadmin-setTheme-logo" style="background-color: {{ item.logo }};"></div>
    </div>
    </li>
    {{# }); }}
  </ul>
</div>